package ui;

import java.awt.image.BufferedImage;
import java.util.Random;

/**
 * @author five-five
 * @createTime 2022/2/28 16:54
 */
public class EnemyPlane {
    BufferedImage image;
    int x;
    int y;
    public EnemyPlane(){
        Random random = new Random();
        int index = random.nextInt(15) + 1;
        String name = index >= 10 ? "ep" + index : "ep0" + index;
        image = GetImage.getImage(name + ".png");
        System.out.println(name + ".png");
        this.y = 0;
        this.x = random.nextInt(Frame.size_x - image.getWidth());
    }
}
